import request from '@/utils/request'

// 查询报告评论记录详细
export function getReportComment(id) {
  return request({
    url: '/cooperate/reportComment/' + id,
    method: 'get'
  })
}

// 新增报告评论记录
export function addReportComment(data) {
  return request({
    url: '/cooperate/reportComment',
    method: 'post',
    data: data
  })
}

// 修改报告评论记录
export function updateReportComment(data) {
  return request({
    url: '/cooperate/reportComment',
    method: 'put',
    data: data
  })
}

// 删除报告评论记录
export function delReportComment(id) {
  return request({
    url: '/cooperate/reportComment/' + id,
    method: 'delete'
  })
}

// 点赞
export function like(data) {
  return request({
    url: '/cooperate/reportLike/like',
    method: 'post',
    data: data
  })
}

// 取消点赞
export function unlike(data) {
  return request({
    url: '/cooperate/reportLike/unlike',
    method: 'post',
    data: data
  })
}